package com.example.converter.controller;

import com.example.converter.enums.Animal;
import com.example.converter.enums.Color;
import com.example.converter.vo.VideoParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConverterController {
    @GetMapping("/getVideo")
    public VideoParam getVideo(VideoParam param) {
        return param;
    }

    @PostMapping("/saveVideo")
    public VideoParam saveVideo(@RequestBody VideoParam param) {
        return param;
    }

    @GetMapping("/color")
    public Color color(Color color) {
        return color;
    }

    @GetMapping("/animal")
    public Animal animal(Animal animal) {
        return animal;
    }
}
